let str = '2022-04-23T13:24:06 Europe/Paris'
let res = str.match(/\d+/g)
console.log(res)
